<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../js/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div v-if='score>=90'>优秀</div>
        <div v-else-if='score>=80'>中等</div>
        <div v-else-if='score>=70'>一般般</div>
        <div v-else>要补课</div>

        <h1 v-show="score>60"> 隐藏</h1>
    </div>
</body>
<script>
var vm = new Vue({
    el: "#app",
    data: {
       score: 75,
    }
});

</script>
</html>